package cn.qqy.org.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DepartmentQuery {
    private Integer currentPage=1;
    private Integer pageSize=10;
    private String name;

    public Integer getstartIndex(){
        return (currentPage-1)*pageSize;
    }

}
